home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / fulpak / vgacolor.h < prev    next >
Text File  |  1997-07-07  |  3KB  |  94 lines

  1. /* vgaedit 1.1 copy right 1996 by Bruce R. O'Banion prototypes */
  2.  
  3. int read_palette(char palette);
  4. int read_dac_buff(char  *color_buff);
  5. int read_color_reg(char *colors,int reg);
  6. int write_dac_buff(char  *color_buff);
  7. int write_color_reg(char *colors,int reg);
  8. int gray_color_regs(void);
  9. int gray_color_reg(int reg);
  10. int vga_get_adapter(void);
  11. int read_palette_scheme(char *color_buff);
  12. int write_palette_scheme(char *color_buff);
  13. int write_palette(char color,char palette);
  14. int toggle_intensity(unsigned char toggle);
  15. int toggle_blink(unsigned char toggle);
  16. int load_color_regs(char *file_name);
  17. int save_color_regs(char *file_name);
  18. int load_palette(char *file_name);
  19. int save_palette(char *file_name);
  20. int enable_reset(unsigned char toggle);
  21. int init_vgaedit(void);
  22. int uninit_vgaedit(void);
  23.  
  24. # define VGA 9
  25. # define EGA 3
  26.  
  27.  
  28. /* color defines for the DAC */
  29.  
  30. #define C_BLACK               0
  31. #define C_BLUE                1
  32. #define C_GREEN               2
  33. #define C_CYAN                3
  34. #define C_RED                 4
  35. #define C_MAGENTA             5
  36. #define C_LIME                6
  37. #define C_LIGHT_GRAY          7
  38. #define C_DARK_PURPLE         8
  39. #define C_BRIGHT_BLUE         9
  40. #define C_LIGHT_GREEN        10
  41. #define C_PALE_CYAN          11
  42. #define C_ROSE               12
  43. #define C_PALE_PURPLE        13
  44. #define C_PEA_GREEN          14
  45. #define C_PALE_MAGENTA       15
  46. #define C_FOREST_GREEN       16
  47. #define C_INDIGO             17
  48. #define C_BRIGHT_GREEN       18
  49. #define C_PALE_GREEN         19
  50. #define C_BROWN              20
  51. #define C_LIGHT_MAGENTA      21
  52. #define C_BRIGHT_GREEN_2     22
  53. #define C_PALE_GREEN_2       23
  54. #define C_DARK_GRAY          24
  55. #define C_LIGHT_BLUE         25
  56. #define C_BRIGHT_GREEN_3     26
  57. #define C_LIGHT_CYAN         27
  58. #define C_RED_BROWN          28
  59. #define C_PALE_MAGENTA_2     29
  60. #define C_BRIGHT_GREEN_4     30
  61. #define C_BRIGHT_CYAN        31
  62. #define C_DARK_RED           32
  63. #define C_DARK_INDIGO        33
  64. #define C_GREEN_2            34
  65. #define C_CYAN_2             35
  66. #define C_BRIGHT_RED         36
  67. #define C_BRIGHT_MAGENTA     37
  68. #define C_ORANGE_YELLOW      38
  69. #define C_MELLON             39
  70. #define C_DARK_PURPLE_2      40
  71. #define C_BLUE_2             41
  72. #define C_GREEN_3            42
  73. #define C_SKY_BLUE           43
  74. #define C_BRIGHT_RED_2       44
  75. #define C_BRIGHT_MAGENTA_2   45
  76. #define C_TAN                46
  77. #define C_PINK               47
  78. #define C_FOREST_GREEN_2     48
  79. #define C_BLUE_GRAY          49
  80. #define C_BRIGHT_GREEN_5     50
  81. #define C_PALE_GREEN_3       51
  82. #define C_RED_ORANGE         52
  83. #define C_DARK_PINK          53
  84. #define C_LIME_YELLOW        54
  85. #define C_PALE_YELLOW        55
  86. #define C_DARK_GRAY_2        56
  87. #define C_BLUE_3             57
  88. #define C_GREEN_4            58
  89. #define C_PALE_CYAN_2        59
  90. #define C_LIGHT_RED          60
  91. #define C_PALE_MAGENTA_3     61
  92. #define C_YELLOW             62
  93. #define C_WHITE              63
  94.